#include <iostream>
#include "Vector.h"

int main()
{
    //构造数据类型为整型的，数量为3的Vector 
    Vector<int> a(3);
    a.push_back(1);
    a.push_back(2);   
    Vector<int> b;
    b = a;
    std::cout << b[12] << std::endl;

  //通过cout和指针输出相应的元素 
    for(int* p = a.begin(); p != a.end(); p++)
    {std::cout << *p << "\t" ;   }
    std::cout << std::endl;
    for(int i = 0; i < 3; i++)
    { std::cout << a.back() << "\t" << std::endl;  
        a.pop_back();     }
    std::cout << "pass" << std::endl;
    return 0;
}
